package com.software.management;

public class Student {
    private String name;//姓名
    private String id;//学号
    public Student(){

    }//无参构造方法
        public Student(String name,String id){
        this.id=id;
        this.name=name;
    }//有参构造方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    //打印学生类信息
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", id='" + id + '\'' +
                '}';
    }
}

